import {createRouter,createWebHistory,RouteRecordRaw} from 'vue-router'



const routes:Array<RouteRecordRaw>=[
    {
        path:'/',
        name:'index',
        component:()=>import('../components/HelloWorld.vue')
    },
    {
        path:'/ShopAdd',
        name:'ShopAdd',
        component:()=>import('../views/ShopAdd.vue')
    },
    {
        path:'/ShopShow',
        name:'ShopShow',
        component:()=>import('../views/ShopShow.vue')
    },
    {
        path:'/DiscountAdd',
        name:'DiscountAdd',
        component:()=>import('../views/DiscountAdd.vue')
    },
];

const router=createRouter({
    history:createWebHistory(),
    routes
})


export default router